﻿using System.Windows;
using System.Windows.Controls;
using ZFCNew.Controls;

namespace ZFCNew
{
    public partial class FacebookMessage : UserControl
    {
        public string Message { get; private set; }
        public FacebookMessage()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            if (!string.IsNullOrEmpty(MessageTB.Text) && MessageTB.Text.Trim() != "")
            {
                Message = MessageTB.Text;
            }
            else
            {
                MainPage.NotificationPop.SetMessage
                    (
                    new NotificationData
                    {

                        Message = "Uh-Oh! You need to enter some messages!"
                    }
                    );
                MainPage.NotificationPop.Show();
            }
        }

      


    }


}